<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <style>
        .form-control{
            /*border:0;*/
            padding-top: 10px;
            min-height: 33px;
            height: 100%;
        }
        .none{
            display:none;
        }
    </style>
    <input class="form-control" name="row[id]" value="{$row['id']}" type="hidden">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('洗衣唛')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-control" style="font-weight:900">{$row['clothcode']}</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('订单类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-control">{$row['typetext']}</div>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('预约时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-control">{$row['appoints_day']}</div>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('收件')}地址:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-control" style="word-break: break-all;">{$row['from_district']} {$row.from_poi} {$row.from_address}<br/> {$row.from_name} {$row.from_mobile}</div>
        </div>
    </div>
    
    <?php if($row['poster']){ ?>
        <div class="form-group" >
            <label class="control-label col-xs-12 col-sm-2">骑手:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="form-control">姓名：{$row['poster']['poster_name']} 手机号：{$row['poster']['mobile']}</div>
            </div>    
        </div>
    <?php } ?>
    <div class="form-group" <?php if($row['fwmoney'] == 0){echo 'style="display:none"'; } ?> >
        <label class="control-label col-xs-12 col-sm-2">骑手佣金:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-control">{$row['fwmoney']}元</div>
        </div>    
    </div>
    
        <?php if($row['images']){ ?>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('骑手取衣照片')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <div class="">
                    <?php $qjzp = explode(',',$row['images']);?>
                    <?php foreach( $qjzp as $ki=>$vi){ ?>
                        <a href="{$vi}" target="blank"><img style="width:100px" src="{$vi}"></a>
                    <?php } ?>
                    </div>
                </div>
            </div>
        <?php } ?>
        <?php if($row['reach_images']){ ?>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('送达洗衣店')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <div class="<?php if(!$row['reach_images']){echo'none';} ?>">
                    <?php $sdzp = explode(',',$row['reach_images']);?>
                    <?php foreach( $sdzp as $ki2=>$vi2){ ?>
                        <a href="{$vi2}" target="blank"><img style="width:100px" src="{$vi2}"></a>
                    <?php } ?>
                    </div>
                </div>
            </div>
        <?php } ?>
    
    
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('下单时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-control"><?php echo date("Y-m-d h:i:s",$row['createtime']);?></div>
        </div>
    </div>
   
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <!--<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>-->
        </div>
    </div>
</form>
